{layout name="public:layout" /}
<form action="{:url('site/saveSite')}" method="post">
    <input type="hidden" value="{$site.id}" name="id">
    <div class="form-group row">
        <label for="name" class="col-sm-2 col-form-label">网站名称</label>
        <div class="col-sm-8">
            <input type="text"  class="form-control" name="name" id="name" value="{$site.name}">
        </div>
    </div>
    <div class="form-group row">
        <label  class="col-sm-2 col-form-label">关键字</label>
        <div class="col-sm-8">
            <textarea class="form-control">{$site.keywords}</textarea>
        </div>
    </div>

    <div class="form-group row">
        <label  class="col-sm-2 col-form-label">是否打开</label>
        <div class="col-sm-8 mt-2">
            <label class="radio-inline"><input type="radio" value="1" name="is_open" {eq name="$site.is_open" value="1"}checked="checked"{/eq}>打开</label>
            <label class="radio-inline"><input type="radio" value="0" name="is_open" {eq name="$site.is_open" value="0"}checked="checked"{/eq}>关闭</label>
        </div>
    </div>
    <div class="form-group row">
        <label  class="col-sm-2 col-form-label">允许注册</label>
        <div class="col-sm-8 mt-2">
            <label class="radio-inline"><input type="radio" value="1" name="is_reg" {eq name="$site.is_reg" value="1"}checked="checked"{/eq}>允许</label>
            <label class="radio-inline"><input type="radio" value="0" name="is_reg" {eq name="$site.is_reg" value="0"}checked="checked"{/eq}>不允许</label>
        </div>
    </div>
    <div class="form-group row">
        <label  class="col-sm-2 col-form-label"></label>
        <div class="col-sm-8">
            <input type="submit" value="保存">
        </div>
    </div>
</form>